cmake_minimum_required(VERSION 3.12)
set(LIB_NAME websocketserver)
file(GLOB_RECURSE  SRC_LIST "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
add_library(${LIB_NAME} ${SRC_LIST})
target_include_directories(${LIB_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(${LIB_NAME} ${DEPENDS_LIB})

install(
  TARGETS ${LIB_NAME}
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION bin)

install(DIRECTORY include/ DESTINATION include)